package com.springboot.uav.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Entity
@Table(name = "feedback")
@TableName(value = "feedback")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Feedback {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "反馈id", example = "100")
    private int id;

    @Schema(description = "用户id 关联user_id", example = "1")
    private int userId;

    @Schema(description = "反馈内容", example = "希望增加更多的支付方式")
    private String message;

    @Schema(description = "反馈创建时间", example = "2024-11-21T18:00:00")
    private LocalDateTime createdAt;

    @Schema(description = "反馈状态：未处理、已处理", example = "未处理")
    private String status;

    @Schema(description = "管理员回复", example = "我们正在考虑您的建议")
    private String response;
}
